clear textprogressbar; clear; clc

switch Constant.ComputerName
    case { 'nzhaoMP' } % NZ macpro
        [session, zi]=CreateSession;
%         session = CreateSession;
    case  { 'DESKTOP-9FK8TBC'} % Platform1 Computer
        [session, zi3543, zi3560]=CreateSession;
    case 'DESKTOP-5IMSGUS'
        [session, zi]=CreateSession;
    case 'DELL-PC'
        [session, zi]=CreateSession;
    case 'TABLE2-CTRLCOMP'  % Platform2 Computer (Zhang Xiangdong)
        [session, zi3571]=CreateSession;
    otherwise
        error('Unkonwn computer name.');
end